package org.kl.bf.entity.basic;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;

@Entity
@Table(name = "basic_notify_group_user")
public class NotifyGroupUser extends AuditableEntity {

	private static final long serialVersionUID = 1L;

	private User user;
	private NotifyGroup notifyGroup;

	public NotifyGroupUser() {

	}

	public NotifyGroupUser(String id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "user_id")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@ManyToOne
	@JoinColumn(name = "notify_group_id")
	public NotifyGroup getNotifyGroup() {
		return notifyGroup;
	}

	public void setNotifyGroup(NotifyGroup notifyGroup) {
		this.notifyGroup = notifyGroup;
	}
}
